<template>
  <div>
    <h2> 欢迎</h2>
  </div>
  <el-input v-model="input" style="width: 240px" placeholder="Please input" />
</template>
<script>
import { ref } from "vue"
const input = ref('')
import axios from "axios";

// 获取管理员信息
let token = localStorage.getItem("token")
axios.get("http://localhost:1337/api/v1/auth/manager_info", {
  headers: {
    token
  }
}).then(r => {
  console.log(r.data);
  localStorage.setItem("nickName", r.data.nickName)
})


</script>
<style></style>
